package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
* Created by Mybatis Generator on 2023/12/22
*/
@Data
@ApiModel("处方产品的详情")
@Table(name = "tbl_favourite_prescription_detail_product")
@NoArgsConstructor
@AllArgsConstructor
public class TblFavouritePrescriptionDetailProduct extends BaseEntity {

    @Column(name = "favourite_prescription_detail_id")
    @ApiModelProperty("处方详情表ID")
    private String favouritePrescriptionDetailId;

    /**
     * 单位数量
     */
    @Column(name = "uom_quantity")
    @ApiModelProperty("单位数量")
    private BigDecimal uomQuantity;

    /**
     * product 的uom_id
     */
    @ApiModelProperty("product 的uom_id")
    private String unit;

    @ApiModelProperty(value = "服用频率",name = "frequency")
    private String frequency;

    /**
     * 持续时间
     */
    @ApiModelProperty("持续时间")
    private Integer duration;

    /**
     * 1days,2weeks,3months
     */
    @Column(name = "duration_unit")
    @ApiModelProperty("1days,2weeks,3months")
    private Integer durationUnit;

    /**
     * 存储计算出来的最小单位用量总量
     */
    @ApiModelProperty("存储计算出来的最小单位用量总量")
    private BigDecimal quantity;

    /**
     * null/Then/And
     */
    @Column(name = "step_dose")
    @ApiModelProperty("null/Then/And")
    private String stepDose;

    /**
     * 服用顺序，从 1 开始。例如:1 AND 2 THEN 3 AND 4
     */
    @Column(name = "step_order")
    @ApiModelProperty("服用顺序，从 1 开始。例如:1 AND 2 THEN 3 AND 4")
    private Integer stepOrder;
}